package cn.aixuegao.common.base.entity;

import java.io.Serializable;
import java.util.List;

public class PageContainer<T> implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5155788277948104144L;

	/** 总数 */
    private int total;

    /** 每页显示条数，默认 10 */
    private int size;

    /** 总页数 */
    private int pages;

    /** 当前页 */
    private int current;
    
    /**分页结果*/
    List<T> records;

	public PageContainer() {
		
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public int getPages() {
		return pages;
	}

	public void setPages(int pages) {
		this.pages = pages;
	}

	public int getCurrent() {
		return current;
	}

	public void setCurrent(int current) {
		this.current = current;
	}

	public List<T> getRecords() {
		return records;
	}

	public void setRecords(List<T> records) {
		this.records = records;
	}

	@Override
	public String toString() {
		return "PageContainer [total=" + total + ", size=" + size + ", pages=" + pages + ", current=" + current
				+ ", records=" + records + "]";
	}
}
